<?php
C_base::Dy('c.kefu.kfbase');
class ltjl extends kfbase{
	
	var $_vpath='kefu/ltjl/';  //定义调用模板所属一级文件夹
	function __construct(){
		parent::__construct();
		$this->title = '聊天记录管理';
	}
/********************************************个人****************************************/
	function index(){
		//$w = array('type'=>0);
		$w = array('id!'=>0);
		for($i=0;$i<100;$i++){
			$r[] = C_base::M('admin.recruit')->liaot_sf($i,$w,'uid');
		}
		$this->r = util::arr_one($r);
		foreach($this->r as $k1 => $v1){
			$b[] = $v1['uid'];
		}
		$this->r = array_values(array_unique($b));
		foreach($this->r as $k2 => $v2){
			$r1 = C_base::M('admin.recruit')->liaot_sf($v2,$w,'time');
			$r2 = array();
			foreach($r1 as $k3 => $v3){
				$r2[] = date('Y-m-d',$v3['time']);
			}
			$this->ar[$v2] = array_unique($r2);
		}
		//聊天列表，列UID和日期列表，选中日期点击详情进入当天消息详情页
	}
	
	function ltxx(){
		extract($this->_get());
		$date = strtotime($date);
		$time1 = mktime(0,0,0,date('m',$date),date('d',$date),date('Y',$date));
		$time2 = mktime(23,59,59,date('m',$date),date('d',$date),date('Y',$date));
		$w = array('uid'=>$uid,'time]'=>$time1,'time<'=>$time2);
		$this->r = C_base::M('admin.recruit')->liaot_ss($uid,$w);
	}
}
/*********************************************************************文件已结束*****************************************************************/